<{include "public/header.html"}>
<div class="right">
	<div class="now">
		<div class="now_l"></div>
		<div class="now_m"><{$title}></div>
		<div class="now_r"></div>
		<div class="clear"></div>
	</div>

	<div class="search">
		<div class="fl qiehuan">
			<a href="<{$url}>" <{if empty($smarty.get.state)}> class="sel" <{/if}> >全部订单</a>
			| <a href="<{$url}>&state=1" <{if $smarty.get.state eq 1}> class="sel" <{/if}>>未付款</a>
			| <a href="<{$url}>&state=2" <{if $smarty.get.state eq 2}> class="sel" <{/if}>>待发货</a>
			| <a href="<{$url}>&state=3" <{if $smarty.get.state eq 3}> class="sel" <{/if}>>已发货</a>
			| <a href="<{$url}>&state=4" <{if $smarty.get.state eq 4}> class="sel" <{/if}>>成功订单</a>

		</div>
		<div class="fr searbox">
			<form method="get">
				<input type="hidden" name="m" value="<{$smarty.get.m}>" />
				订单编号：<input type="text" name="id" value="<{$smarty.get.id}>" class="inputtext input100" />
				收货姓名：<input type="text" name="utname" value="<{$smarty.get.utname}>" class="inputtext input100" />
				联系方式：<input type="text" name="uphone" value="<{$smarty.get.uphone}>" class="inputtext input100" />
				<input type="submit" value="搜索" class="input2" />
			</form>
		</div>
		<div class="clear"></div>
	</div>
	<div class="hy_table">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="hy_tb_tt">
		<tr>
			<td class="bg_f8" width="">商品详情</td>
			<td class="bg_f8" width="120">实付款(元)</td>
			<td class="bg_f8" width="120">交易操作</td>
			<td class="bg_f8" width="120" style="border-right:0;">订单详情</td>
		</tr>
		</table>
			<{foreach $info_list as $v }>
			<div class="hy_table_order c666">
				<span class="fl">订单编号：<{$v.id}></span>
				<span class="fr">下单时间：<{$v.atime|date_format:'%Y-%m-%d %H:%M'}></span>
				<div class="clear"></div>
			</div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #D4E7FF;">
			<tr>
				<td style="text-align:left;">
					<{foreach $v.product_list as $kk => $vv }>
					<div class="dingdan_list" <{if $kk eq 0 }>style="padding-top:0"<{/if}>>
						<a href="<{$root}>/index.php?m=product&a=index&id=<{$vv.pid}>" class="fl mar5"><img src="<{thumb($vv.plogo, 60, 60)}>" width="45" height="45"></a>
						<div class="fl font12">
							<a href="<{$root}>/index.php?m=product&a=index&id=<{$vv.pid}>" title="<{$vv.pname}>" target="_blank" class="cblue dd_name"><{$vv.pname}></a>
							</div>
							<span class="fr font12"><span class="num">￥<{$vv.pmoney}></span>(×<{$vv.pnum}>)</span>
						<div class="clear"></div>
					</div>
					<{/foreach}>
				</td>
				<td width="100">
					<p class="cred num font14 strong"><{$v.order_money}></p>
					<p class="c888 font12"><{if $v.wlmoney eq 0 }>(卖家包邮)<{else}>(含运费<{$v.wlmoney}>元)<{/if}></p>
				</td>
				<td width="100">

				<!--货到付款-->
				<{if $v.payway eq 3 }>
					<{if $v.state eq 1 }>
					<p class="cgreen font13">订单创建成功</p>
					<p><a class="shouhuo_btn" href="<{$url}>&a=state&state=3&id=<{$v.id}>" onclick="return bro_dialog(this, '填写快递信息')">发货</a></p>
					<{elseif $v.state eq 3 }>
					<p class="cgreen font13">卖家已经发货</p>
					<p><a class="pay_btn" href="<{$url}>&a=state&state=2&id=<{$v.id}>" onclick="return confirm('你确定要付款吗？')">付款</a></p>
					<{elseif $v.state eq 4 }>
					<p class="cgreen font13">交易成功</p>
					<{/if}>
				<!--先款后货-->
				<{else}>
					<{if $v.state eq 1 }>
					<p class="cgreen font13">订单创建成功</p>
					<p><a class="pay_btn" href="<{$url}>&a=state&state=2&id=<{$v.id}>" onclick="return confirm('你确定要付款吗？')">付款</a></p>
					<{elseif $v.state eq 2 }>
					<p class="cgreen font13">买家付款成功</p>
					<p><a class="shouhuo_btn" href="<{$url}>&a=state&state=3&id=<{$v.id}>" onclick="return bro_dialog(this, '填写快递信息')">发货</a></p>
					<{elseif $v.state eq 3 }>
					<p class="cgreen font13">卖家已经发货</p>
					<p class="cred font13">支付宝还未确认</p>
					<{elseif $v.state eq 4 }>
					<p class="cgreen font13">交易成功</p>
					<{/if}>
				<{/if}>
				<p class="c888 font12 mat3"><{$paywayarr[$v.payway]}></p>
				</td>
				<td width="100">
					<a href="<{$url}>&a=mod&id=<{$v.id}>" target="_blank" class="font13">订单详情</a>
					<{if $v.state eq 1 }>
					<p class="mat3"><a href="<{$url}>&a=del&id=<{$v.id}>" onclick="return confirm('确定要删除订单')" class="cblue font12">删除订单</a></p>
					<{/if}>
				</td>
			</tr>
			</table>
			<{/foreach}>
			<div class="hy_pay">
				<{$fpage}>
			</div>
	</div>
</div>

<{include "public/footer.html"}>
<script charset="utf-8" src="<{$public}>/js/plugin/artdialog/jquery.artDialog.js?skin=chrome"></script>
<script charset="utf-8" src="<{$public}>/js/plugin/artdialog/plugins/iframeTools.js"></script>

